GoXam for WPF v3
FindElementUpFrom(FrameworkElement,Predicate<FrameworkElement>) Method
Northwoods.GoXam.Tool Namespace > DiagramTool Class > FindElementUpFrom Method : FindElementUpFrom(FrameworkElement,Predicate<FrameworkElement>) Method
a FrameworkElement
When this predicate is true for an element, return that element. When this predicate is false for an element, continue up the visual parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.
Search up the chain of parent visual elements starting with the given element to find one for which pred is true
Syntax
protected virtual FrameworkElement FindElementUpFrom( 
   FrameworkElement elt,
   Predicate<FrameworkElement> pred
)

Parameters

elt
a FrameworkElement
pred
When this predicate is true for an element, return that element. When this predicate is false for an element, continue up the visual parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.

Return Value

null if no such element is found
See Also

Reference

DiagramTool Class
DiagramTool Members
Overload List